import {createRouter, createWebHashHistory} from "vue-router";

import mainRoutes from "./module/mainRoutes.ts";
import otherRoutes from "./module/other.ts";

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        ...mainRoutes,

        ...otherRoutes,
        {
            path: "/",
            redirect: {name: 'main'}
        },

        {
            path: '/:catchAll(.*)',
            redirect: {name: "main"}
        }
    ]
});


export default router